home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickTime / Programming Stuff / Documentation / develop articles / develop Issue 15 / Text To Speech media handler / Code / MyUnregisterComponent.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-21  |  456 b   |  22 lines  |  [TEXT/KAHL]

  1. #include "ComponentData.h"
  2. #include "MyUnregisterComponent.h"
  3. #include "MyOpenComponent.h"
  4.  
  5. pascal ComponentResult MyUnregisterComponent(PrivateGlobals **storage)
  6. {
  7. ComponentResult result=-1;
  8. SharedGlobals    *mySharedGlobalsPtr;
  9.  
  10. if (storage)
  11.     {
  12.     mySharedGlobalsPtr = GetComponentGlobals( storage );
  13.     if (mySharedGlobalsPtr)
  14.         {
  15.         result = UncaptureComponent(mySharedGlobalsPtr->delegateComponent);
  16.         DisposePtr(mySharedGlobalsPtr);
  17.         }
  18.     }
  19.  
  20. return result;
  21. }
  22.